#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>

void* start_routine(void* args){
	printf("thread\n");
	pthread_exit(NULL);
}
int main(){
	pthread_t thread;
	int ret=pthread_create(&thread,NULL,start_routine,NULL);
	if(ret!=0){
		perror("pthread_create");
		exit(1);
	}
	pthread_detach(thread);
	printf("thread_id=%ld\n",thread);
//	pthread_join(thread,NULL);
	int arr[2];
	printf("%p %p\n",arr,&arr[1]);
	return 0;
}
